package com.guchenbo.study.mvc.view;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "gcb.view")
public class GcbViewProperties {
    public static final String DEFAULT_PREFIX = "classpath:/templates/";
    public static final String DEFAULT_SUFFIX = ".html";

    /**
     * 视图文件前缀，一般是目录名
     */
    private String prefix = DEFAULT_PREFIX;
    /**
     * 视图文件后缀名
     */
    private String suffix = DEFAULT_SUFFIX;

    public String getPrefix() {
        return prefix;
    }

    public void setPrefix(String prefix) {
        this.prefix = prefix;
    }

    public String getSuffix() {
        return suffix;
    }

    public void setSuffix(String suffix) {
        this.suffix = suffix;
    }
}
